#ifndef GEOMETRY_H
#define GEOMETRY_H
#include"StdAfx.h"

class Geometry
{
public:
	struct BasicVertex
	{
		BasicVertex( ){ }
		BasicVertex( const XMFLOAT3& pos, const XMFLOAT2& uv )
			: Position( pos ), Tex( uv ){ }
		BasicVertex( 
			float px, float py, float pz,
			float u, float v )
			: Position( px, py, pz ), Tex( u, v ){ }

		XMFLOAT3 Position;
		XMFLOAT2 Tex;
	};

	struct BasicMesh
	{
		std::vector<BasicVertex> Vertices;
		std::vector<UINT> indices;
	};

	void CreateQuad( XMFLOAT3 cenPos, float width, float height, BasicMesh& mesh );
};
#endif